arm/kirkwood/nand: allow forced disabling for subpage writes
authorHolger Brunck <[email protected]>
Fri, 15 Aug 2014 08:51:47 +0000 (10:51 +0200)
committerTom Rini <[email protected]>
Sat, 30 Aug 2014 11:46:41 +0000 (07:46 -0400)
Make it configurable to disable subpage writes like the DaVinci NAND
driver already does.

Signed-off-by: Holger Brunck <[email protected]>
cc: Valentin Longchamp <[email protected]>
cc: Prafulla Wadaskar <[email protected]>
cc: Scott Wood <[email protected]>

drivers/mtd/nand/kirkwood_nand.c

index 72687a1da31b583d4cadc018629ebb755f10b10a..3e5fb0cd65a243d77fe2759556bab0f9209beec1 100644 (file)
@@ -58,6 +58,9 @@ void kw_nand_select_chip(struct mtd_info *mtd, int chip)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->options = NAND_COPYBACK | NAND_CACHEPRG | NAND_NO_PADDING;
+#if defined(CONFIG_SYS_NAND_NO_SUBPAGE_WRITE)
+       nand->options |= NAND_NO_SUBPAGE_WRITE;
+#endif
 #if defined(CONFIG_NAND_ECC_BCH)
        nand->ecc.mode = NAND_ECC_SOFT_BCH;
 #else